Embedded iframe

The embedded iframe places the Sage Candidate Portal in the middle of one of the pages on your website. You need to have editing access to the HTML page hosting the portal.

You can embed the iframe in a webpage you host on a different domain than the Salesforce Candidate Portal site. You need to set the Clickjack Protection Level for the site to Allow framing by any page (no protection).

Resolution

  1. In the header part of your web page, place the following HTML:

    <script language="JavaScript"> var candidatePortalName="[portalname]";</script>

    <script language="JavaScript" src="https://[yoursitesdomain.my.salesforce-sites.com]/resource/fRecruit__ApplyPortalFrame"></script>

    The first script code defines the Candidate Portal configuration you want to load. Replace [portalname] with the name of the Candidate Portal configuration you created. For the default portal or if you're using a single portal, leave blank, or omit this line completely.

    The second script code loads a Javascript file we supply with Recruit. Replace [yoursitesdomain.my.salesforce-sites.com] with the Sites domain name you configured in the Default Web Address field when setting up the site.

    Tip

    To retrieve the Sites domain name when you set the site up:

    1. Go to Setup and select User Interface.
    2. Select Sites and Domains, then select Sites.
    3. Scroll down to the Sites section.
    4. The Site URL column displays the value you need:

    Include any custom paths. In this example, enter:

    http://sage-19c.my.salesforce-sites.com/recruit

  2. In the web page where you want to embed the portal, place the following HTML:

    <div id="FairsailApplicantPortal" style="width:1002px;"></div>

    To ensure the complete portal fits into the iframe space, set the width to 1002px. This is unless you've attached a stylesheet to reduce the required width. The height of the portal adjusts automatically.

  3. Test by going to the Candidate Portal page on your website.
  4. Change the Base URL setting in Sage People Recruit configuration to the new url. This goes to the page you've created. Candidate email links and job board posts will now work via your new career page.

You can also attach a stylesheet to the embedded portal to make it match your website. Add the stylesheet link in the Sage People Recruit Configuration page for Applicant Portal. You can also use the header and extra text and images within the portal iframe.